package com.orangelife.service.refund.impl;

import java.util.Date;

import org.springframework.stereotype.Service;

import com.orangelife.common.MybaitsGenericDaoSubLogic;
import com.orangelife.exception.AppBizException;
import com.orangelife.service.refund.IRefundService;
import com.orangelife.service.refund.modal.PropFeeRefundInfoDto;
import com.orangelife.utils.IdUtil;


@Service("refundService")
public class RefundServiceImpl extends MybaitsGenericDaoSubLogic implements
IRefundService {

	@Override
	public int addRefund(PropFeeRefundInfoDto propFeeRefundInfoDto)
			throws AppBizException {
		
		if(propFeeRefundInfoDto.getRefundID()==null){
			
			propFeeRefundInfoDto.setRefundID(IdUtil.getuuId());
			
		}
		propFeeRefundInfoDto.setItemStat("1");
		propFeeRefundInfoDto.setTscreate(new Date());
		// TODO Auto-generated method stub
		return this.getSqlSession().insert("PropFeeRefundInfoMapper.insertSelective", propFeeRefundInfoDto);

	}


	

}
